package com.john.bms.service.wow;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.john.bms.mapper.wow.ItemTemplateMapper;
import com.john.bms.model.system.dictionaries.SysDictionarie;
import com.john.bms.model.wow.ItemTemplate;
import com.john.bms.model.wow.item.ItemTemplatePage;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author:张家小帅哥
 * @Date:2020/12/1
 * @Version:1.0
 * @Description:TODO
 */
@Service
public class ItemTemplateService {

    @Resource
    private ItemTemplateMapper itemTemplateMapper;


    public PageInfo<ItemTemplate> getitemTemplatePageList(ItemTemplatePage page){
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        List<ItemTemplate> itemTemplates = itemTemplateMapper.selectPageList(page);
        PageInfo<ItemTemplate> pageInfo = new PageInfo<>(itemTemplates);

        return pageInfo;
    }
}
